package com.shy.springframework.test.event;

import com.shy.springframework.context.ApplicationListener;
import com.shy.springframework.context.event.ContextRefreshedEvent;

/**
 * @author yzpang
 * @desc:
 * @date: 2023/2/9 16:45
 */
public class ApplicationRefreshEventListener implements ApplicationListener<ContextRefreshedEvent> {
    @Override
    public void onApplicationEvent(ContextRefreshedEvent event) {
        System.out.println("上下文刷新成功: " + event.getApplicationContext());
    }
}
